package com.BMS.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.alibaba.fastjson.JSONObject;



/**
 * 管理员实体类
 * @author lenovo
 *
 */
@Entity
@Table(name = "manager")
public class Manager implements Serializable{

	 private static final long serialVersionUID = -3245478690496182643L;
	 
	private String manager_ID;  // 管理员ID
	
	private String name;  // 姓名
	
	private String password;  // 登录密码
	
	public Manager() {
		
	}

	@Id
	@Column(name = "manager_ID", nullable = false, unique = true, length = 12)
	public String getManager_ID() {
		return manager_ID;
	}

	public void setManager_ID(String manager_ID) {
		this.manager_ID = manager_ID;
	}

	@Column(name = "name", nullable = false, length = 5)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "password", nullable = false, length = 32)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Override
	public String toString() {
		JSONObject obj = new JSONObject();
		return obj.toJSONString(this);
	}
	
}
